<%@ taglib prefix="s" uri="/struts-tags"%>


<s:set name="customerLoginCheck" value="%{#session.customerLogin}" />
<s:if test="%{#customerLoginCheck!=null}">


<center><h2>Invoice Detail</h2></center>
	<div id="container">

		<s:form action="adminInvoiceEditSave" namespace="/">

			<s:iterator value="invoice">
<s:textfield disabled="true" label="Customer"
					key="customer.getName()" />

				<s:textarea disabled="true" label="Mailing Address" key="mailing_address" />
				<s:textfield disabled="true" label="Payment Method"
					key="payment_method" />
				<s:select  disabled="true" label="Status"
					list="#{'successful':'successful', 'fail':'fail'}" name="status"
					value="status" />
				<br />
				<s:textfield disabled="true" label="Transaction Date"
					key="dateString" />
				



			</s:iterator>
		</s:form>

		<table style="width: 100%">

			<tr style="background: #DDD">
				<td>Name</td>

				<td>Size</td>
				<td>Color</td>
				<td>Quantity</td>
								<td>Unit price</td>
				
				<td>Price</td>
			</tr>


			<s:iterator value="invoice_items">

				<tr>
					<td><s:property value="getProductName()" /></td>

					<td><s:property value="getSizeName()" /></td>
					<td><s:property value="getColorName()" /></td>
					<td><s:property value="quantity" /></td>
										<td><s:property value="" /></td>
					
					<td><s:property value="price" /></td>




				</tr>
			</s:iterator>
total amount
		</table>


	</div>

</s:if>

<%@ page language="java" contentType="text/html; charset=BIG5"
    pageEncoding="BIG5"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=BIG5">
<title>Insert title here</title>
</head>
<body>

</body>
</html>